<template>
	<view>
		<nav-bar   fontColor="#FFFFFF" title="客户订购订单"></nav-bar>
		<uni-search-bar placeholder="融资编号" v-model="financialNo" @confirm="search"></uni-search-bar>
		<uni-search-bar placeholder="产品名称" v-model="productName" @confirm="search"></uni-search-bar>
		<uni-card mode="card">
			<zb-table :columns="column" :stripe="true" :fit="true" :data="dataList" @detail="detail" @edit="edit"></zb-table>
		</uni-card>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				financialNo:'',
				productName:'',
				column: [{
						type: 'index',
						label: '序号',
						align: 'center'
					},
					{
						name: 'financialNo',
						label: '融资编号',
						
						emptyString: '暂无数据',
						align: 'center'
					},
					{
						name: 'financialUser',
						label: '融资用户',
						emptyString: '暂无数据',
						align: 'center'
					},
					{
						name: 'productName',
						label: '产品名称',
						emptyString: '暂无数据',
						align: 'center'
					},
					{
						name: 'financialNumber',
						label: '融资金额（元）',
						emptyString: '暂无数据',
						align: 'center'
					},
					{
						name: 'status',
						label: '状态',
						emptyString: '暂无数据',
						align: 'center'
					},
					{
						name: 'createTime',
						label: '创建时间',
						emptyString: '暂无数据',
						align: 'center',
					},
					{
						name: 'operation',
						type: 'operation',
						label: '操作',
						align: 'center',
						renders: [{
							name: '详情',
							// type: 'warn', // type 为custom的时候自定义按钮
							func: "detail"
						},
						{
							name: '还款计划',
							func: "edit",
						}]
					},
				],
				dataList: [
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					},
					{
						financialNo :'J49667836314849',
						financialUser:'济南市天桥区鲁康名饮百货超市',
						productName:'酒新贷',
						financialNumber:'10.00',
						status:'融资申请待提交',
						createTime:'2023-07-03 10:01:08'
					}
				],
			}
		},
		methods:{
			search(){
				
			},
			detail(e){
				uni.navigateTo({
					url:'/pages/financial-products/financial-order-details'
				})
			},
			edit(e){
				console.log(e)
			}
		}
	}
</script>

<style>
</style>